<?
	include 'model/xl_dia_diem.php';
	include 'model/xl_binh_luan_dia_diem.php';
	include 'model/xl_nhom_dia_diem.php';
	include 'model/xl_nguoi_dung.php';
	include 'model/xl_hinh_anh_dia_diem.php';
	
	global $more;
	$more = 0;
	$xl_hinh_anh = new xl_hinh_anh_dia_diem();
	$xl_dia_diem = new xl_dia_diem();
	$xl_binh_luan = new xl_binh_luan_dia_diem();
	$xl_nhom_dia_diem = new xl_nhom_dia_diem();
	$xl_nguoi_dung = new xl_nguoi_dung();
	
	$maDiaDiem = $_REQUEST['idPlace'];
	$xl_dia_diem->updateView($maDiaDiem);
	
	$arrDiaDiem = $xl_dia_diem->diaDiem($maDiaDiem);
	$row = $arrDiaDiem[0];
	
	$arrHinhAnh = $xl_hinh_anh->hinhAnhDiaDiem($maDiaDiem);
	
	$arrDiaDiemTuongTu = $xl_dia_diem->placeOfGroup($row['MaNhomDiaDiem'],$maDiaDiem);
	
	
	$tenNhom = $xl_nhom_dia_diem->layTenNhom($row['MaNhomDiaDiem']);
	$tongBinhLuan = $xl_binh_luan->tong_binh_luan($maDiaDiem);
	$arrBinhLuan = $xl_binh_luan->dsBinhLuan($maDiaDiem);
	$nguoidung = $xl_nguoi_dung->layNguoiDung($row['MaNguoiDung']);
	
	$tenNguoiDung = $nguoidung[0]['TenHienThi'];
	$avatar = $nguoidung[0]['HinhAnhDaiDien'];
	
	
	require 'pages/dia-diem.php';
?>